package org.saxing.mapper;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.saxing.entity.Computer;

import java.util.List;

/**
 * Created by 17020639 on 2017/8/2.
 */
public interface ComputerMapper {

    List<Computer> getAll();

    Computer getOne(Long id);

    void insert(Computer computer);

    void update(Computer computer);

    void delete(Long id);


    @Select("select * from computer where id = #{id}")
    Computer findById(@Param("id") Long id);
}
